package com.huonan.designpattern.piplie.dts;

public class App {

    public static void main(String[] args) {

        Pipeline pipeline = new Pipeline<>(new FetchHandler(args))
                .addHandler(new DuplicationHandler())
                .addHandler(new RecordHandler())
                .addHandler(new FilterHandler())
                .addHandler(new RecordHandler())
                .addHandler(new WriteHandler())
                .addHandler(new RecordHandler());
        Object execute = pipeline.execute("开始：");
        System.out.println(execute.toString());

    }
}